package com.enumeration;

/**
 * JwtExceptionEnum.java
 *
 * @author Liang 649355204@qq.com
 * CreateTime 2019/7/18 12:13
 */
public enum JwtExceptionEnum {
    /** jwt匹配 */
    JWT_MATCH(1, "JWT_MATCH"),
    /** jwt不匹配 */
    JWT_NOT_MATCH(2, "JWT_NOT_MATCH"),
    /** jwt过期 */
    JWT_EXPIRE(3, "JWT_EXPIRE");

    private final int code;
    private final String msg;

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }


    JwtExceptionEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
